package day02;

public class DataTypeDemo {
    public static void main(String[] args) {
        /*
        int a=5;
        long b=a;
        int c=(int)b;
        long d=5;
        double e=5;
        System.out.println(e);
        long f=1000000000L;
        int g=(int)f;
        System.out.println(g);
        double h=25.987;
        int i=(int)h;
        System.out.println(i);
        int k=987;
        char s1=(char) k;
        System.out.println(s1);
        int p=2647;
        char s2=(char) p;
        System.out.println(s2);
         */
        byte b1=5;
        byte b2=6;
        byte b3=(byte) (b1+b2);
        System.out.println(b3);//11
        System.out.println(2+2);//4
        System.out.println('2'+'2');//50+50=100
        System.out.println(2+'2');//2+50=52
        System.out.println('2');//2
        byte b4=8;
        byte b5=9;
        byte b6=10;
        byte b7=(byte) (b4+b5+b6);
        System.out.println(b7);
    }
}
